
public class EarrayFirst {
	public static void main(String args[])
	{
		int a[]={7,4,9,8,1,2,5,3,0,6};
		int len=a.length;
		int b[]= new int[len];
		int position=0;
		for(int i=0;i<len;i++)
		{
			if(a[i]%2==0){
				b[position]=a[i];
			position++;
			}
		
		}
		for(int j=0;j<len;j++)
		{
			if(a[j]%2!=0){
				b[position]=a[j];
			position++;
			}
		
		}
for(int i=0;i<len;i++)
{
	System.out.println(b[i]);
}
}
}


